@foreach($projects as $project)
    <div class="cont" onclick="getId(this,'pu')" data-id="{{$project->id}}">
        <div class="xinshou" style="display:{{$project->new_projects?'':'none'}}">新手标</div>
        <p class="name">{{$project->projects_name}}</p>
        <div class="danbao clear">
            <div style="display:{{$project->collateral_id?'':'none'}}">
                <i class="guarantee"></i>
                @if($project->collateral_name=='无')
                    <span>信用</span>
                @else
                    <span>担保</span>
                @endif
                <em></em>
            </div>
            <div style="display:{{$project->is_plan==1?'':'none'}}">
                <i class="Reservefund"></i>
                <span>风险备付金</span>
                <em></em>
            </div>
            <div style="display:{{$project->repayment_name?'':'none'}}">
                <i class="DueRepayment"></i>
                <span>{{$project->repayment_name}}</span>
            </div>
            <p>￥{{$project->finance_rule_money}}起投</p>
        </div>
        <div class="shouru clear">
            <div class="shouru-lt">
                <span class="qixian">预期年化收益</span>
                <p class="clear">
                    {!! $project->auto_rate !!}
                </p>
            </div>
            <div class="shouru-zh">
                <span class="shouyi">期限</span>
                <p class="clear">
                    <span>{{$project->finance_time_num}}{{$project->r_finance_time_cate}}</span>
                    <i></i>
                </p>
            </div>
            <div class="shouru-rt">
                @if($project->status=='rush')
                    <em class="rush">{{$project->r_ratio.'%'}}</em>
                @elseif($project->status=='full')
                    <em class="full">满标</em>
                @elseif($project->status=='payment')
                    <em class="payment">还款中</em>
                @elseif($project->status=='finish')
                    <em class="finish">已还款</em>
                @elseif($project->status=='late')
                    <em class="late">逾期</em>
                @elseif($project->status=='fail')
                    <em class="fail">流标</em>
                    @endif
            </div>
        </div>
    </div>
@endforeach